package Gather.GatherExercise;

/**
 * ClassName:Phone
 * Package:Gather.GatherExercise
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/18-1:25
 * @Version:v1.0
 */
public class Phone {
    /*
    * 定义Javabean类：Phone
    * Phone属性：品牌,价格
    * main方法中定义一个集合,存入三个手机对象
    * 分别为:小米，1000
    *       苹果，8000
    *       锤子，2999
    * 定义一个方法,将价格低于3000的手机信息返回*/
    private String brand;
    private double price;

    public Phone() {
    }

    public Phone(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
